//
//  WSBaseRequestViewController.h
//  WSBaseKit
//
//  Created by zhangcong on 2020/8/14.
//  Copyright © 2020 zhangcong. All rights reserved.
//

#import "WSBaseViewController.h"
//#import "WSConst.h"
#import <WSConst.h>
/**
 * ViewController 带请求的基类
 */
@interface WSBaseRequestViewController : WSBaseViewController
{
    /**
     * 请求失败block
     */
@protected
    ErrorBlock _errorBlock;
    /**
     * 请求成功 block
     */
@protected
    CompleteBlock _completeBlock;
}

/**
 *  开始请求
 */
- (void)didRequest;

/**
 *  请求完成
 *
 *  @param data 返回的数据
 */
- (void)didRequestComplete:(id)data;

/**
 *  请求出错
 *
 *  @param error 错误信息
 */
- (void)didRequestError:(NSError *)error;


@end
